<!DOCTYPE html>
<html>
<head>
	<title><%= title %></title>
	<link rel="stylesheet" type="text/css" href="css/loader.css">
</head>
<body class="container" style="margin-top: 30vh">
	<div class="loader loader-7 ">
	  <div class="line line1"></div>
	  <div class="line line2"></div>
	  <div class="line line3"></div>
	</div>
</body>
<script type="text/javascript" src="javascripts/jquery-2.1.1.js"></script>
<script type="text/javascript">

	$.ajax({
	  	url: 'http://wifi.18wifibank.com/OW2DD/getCityInfo',
		type:'get',
	  	dataType: 'jsonp',
		processData: true,
		timeout: 5000,
		success:function(data, status){
			// console.log(data.code);
			// 跳转页面（城市）
			window.location.href = '/' + data.data.cityName + (data.code == 2 ? '?code=2' : '');
		},
		error:function(XHR, textStatus, errorThrown){
			// window.location.href = '/index';
		}
	});

</script>
</html>